<script setup>
import { computed } from 'vue';
import Position from '@/components/Position.vue'
import FooterBorder from '@/components/FooterBorder.vue'
import { useRoute } from 'vue-router'
import { useStore } from 'vuex'

const route = useRoute()
const store = useStore()

// const hallDetailData = hallDetailList[route.params.id - 1]
const hallDetailData = computed(() => store.getters.getHallListById(route.params.id))

</script>

<template>
    <div class="content">
        <div class="top-image"></div>
        <Position>
            <template #default>
                珍宝馆
            </template>
        </Position>
        <div class="container">
            <div class="bt">
                <a href="#">珍宝馆</a>
                <span></span>
            </div>

            <div class="row-1">
                <img class="big-img" style="width: 598px;height: 598px;" :src="hallDetailData.imageUrl">
                <div class="right">
                    <div class="right-top">珍宝馆信息</div>
                    <div class="right-bottom">
                        <img class="small-img" style="width: 140px;height: 140px;" :src="hallDetailData.imageUrl">
                        <div class="jj">
                            <h1>名称：{{ hallDetailData.name }}</h1>
                            <p>简介：{{ hallDetailData.jj }}</p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row-2">
                <div class="bottom-top">详细介绍</div>
                <p>{{ hallDetailData.xq }}</p>
            </div>

        </div>
        <FooterBorder></FooterBorder>
    </div>
</template>

<style scoped>
.big-img {
    box-shadow: 4px 4px 5px 0px rgba(0, 0, 0, 0.4);
}

.small-img {
    border: 1px solid #d9c18e;
}

.bottom-top {
    width: 910px;
    height: 37px;
    font-size: 18px;
    color: #941200;
    font-weight: bold;
    border-bottom: 2px solid #941200;
    display: flex;
    align-items: center;
    padding-left: 10px;

    margin: 0 auto;
}

.row-2 {
    padding: 10px 20px;
    margin-top: 20px;
    border: 1px solid #d9c18e;
    background-color: #feeac9;
}

.row-1 {
    display: flex;
    justify-content: space-between;
}

.right-top {
    color: #FFE179;
    background-color: #941200;
    width: 332px;
    height: 34px;
    display: flex;
    font-size: 18px;
    font-weight: bold;
    align-items: center;
    padding-left: 18px;
}


.jj h1 {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
}

.row-1 .right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.right-bottom {
    width: 350px;
    height: 553px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    box-sizing: border-box;
    border: 1px solid #d9c18e;
    background-color: #feeac9;
    justify-content: space-between;
}

h3 {
    color: #D69A3d;
    font-size: 16px;
    font-weight: normal;
    margin: 0 0;
}


p {
    line-height: 22px;
    color: #555555;
    font-size: 18px;
}

.line {
    height: 35px;
    border-top: 1px solid #888576;
    margin-top: 35px;
}

.top-image {
    height: 257px;
    background-image: url('@/assets/hall.jpg');
    /* background-size: cover; */
    background-repeat: no-repeat;
    background-position: center center;
}

.position {
    height: 48px;
    background-image: url('@/assets/postionbg.gif');
    /* background-size: cover; */
    /* background-repeat: no-repeat; */
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.position-content {
    display: flex;
    width: 960px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-left: 20px;
    background-image: url('@/assets/postionl.gif');
    background-repeat: no-repeat;
    background-position: center left;
}

.position-content .left {
    display: flex;
    align-items: center;
}

.position-content .right {
    display: flex;
    align-items: center;
}

.bread {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 12px;
    color: #E68340;
}

.bread>span {
    padding-right: 10px;
    background-image: url('@/assets/postij.gif');
    background-repeat: no-repeat;
    background-position: center right;
}

.left>span {
    margin-left: 5px;
    color: #FFE179;
    font-size: 12px;
}

.container {
    width: 960px;
    margin: 0 auto;
    padding: 60px 0;
}

.bt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    /* border: 2px solid #941200; */
    border-top: 2px solid #941200;
    border-bottom: 2px solid #941200;
    margin-bottom: 30px;
}

.bt>span {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background-image: url('@/assets/more4.gif');
    background-position: center center;
    background-repeat: no-repeat;
}

.bt>a {
    text-decoration: none;
    color: #941200;
    /* background-color: #941200; */
    font-size: 18px;
    width: 76px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
</style>